package com.wtwd.device.constant;

import com.wtwd.device.model.BaseRespCode;

/**
 * @author mjy
 * @date 2021/12/24
 * @description
 */
public enum PushErrorEnum implements BaseRespCode {

    SUCCESS(0, "成功")//成功
    ,FAIL(1,"失败"),
    PARAM_MISS(2001,"参数丢失"),
    ACCOUNT_PROHIBITED(2002,"您的账户被禁用"),
    ACCOUNT_INDEBT(2003,"您的账户已欠费"),
    NO_PERMISSION(2004,"子账户或者sts访问时未授权"),
    PERMISSION_DENIED(2005,"该App不属于访问者，请检查AppKey配置，是否归属于对应的账号。");

    private int code;
    private String msg;

    PushErrorEnum(int code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public int getCode() {
        return code;
    }

    public String getMsg() {
        return msg;
    }


}
